<?php
/**
 *
 * @param \Application\Boot $app
 * @return array Variables for template
 */
function main($app) {
    $v = array();
    $v['layout']['title'] = 'Hello world';
    $v['layout']['footer'] = 'My name is Vey';
    $v['layout']['menu'] = 'Load template for menu';
    $v['title'] = 'Ads title';
    $v['description'] = 'Description ads';
    $v['date'] = date('m:d:Y H:i:s');
    $v['list'] = array(
        'for', 'from', 'int', 'double', 'maxsize'
    );
    
    $v['avto_marka'] = $app->getRequest()->getParam('marka');
    $v['avto_model'] = $app->getRequest()->getParam('model');
    $v['avto_id'] = $app->getRequest()->getParam('id');
    
    return $v;
}